<html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Table</title>
		<link rel="stylesheet" href="__STATIC__/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="__CSS__/global.css" media="all">
		<link rel="stylesheet" href="__STATIC__/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="__CSS__/table.css" />
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.config.js"></script>
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="__JS__/lang/zh-cn/zh-cn.js"></script>



	</head>
	<body>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
				<legend>	       
				编辑贷款  	
			</legend>
		</fieldset>
		<form action="__ADMIN__/member/upload" method="post">
			
			
				<div class="layui-form-item">
					<label class="layui-form-label">open_id:</label>
					<div class="layui-input-block">
						<input name="" disabled lay-verify="title" value="{$user.member.openid}"  autocomplete="off" placeholder="" class="layui-input" type="text">
				  	<div id="logo_img"></div>
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">总佣金:</label>
					<div class="layui-input-block">
						<input name="" disabled lay-verify="title" autocomplete="off" value="{$user.credit2}" placeholder="" class="layui-input" type="text">
					</div>
				</div>	
					<div class="layui-form-item">
					<label class="layui-form-label">已体现佣金:</label>
					<div class="layui-input-block">
						<input name="" disabled lay-verify="title" autocomplete="off" value="{$money}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">姓名:</label>
					<div class="layui-input-block">
						<input name="info[name]"  lay-verify="title" autocomplete="off" value="{$user.info.name}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">手机:</label>
					<div class="layui-input-block">
						<input name="info[mobile]"  lay-verify="title" autocomplete="off" value="{$user.info.mobile}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				  <div class="layui-form-item">
				    <label class="layui-form-label">等级:</label>
				    <div class="layui-input-block">
				      <select name="info[level]" lay-verify="required">
			  			{if  condition="($user.info.level == 1)"}
  						 <option value="0" >普通会员</option >
				        <option value="1" selected>专员</option>
				        <option value="2" >经理</option>
				        <option value="3" >银行家</option>
				        {elseif condition="($user.info.level == 2)" }
				         <option value="0" >普通会员</option >
				        <option value="1" >专员</option>
				        <option value="2" selected >经理</option>
				        <option value="3" >银行家</option>
				         {elseif condition="($user.info.level == 3)" }
				         <option value="0" >普通会员</option >
				        <option value="1" >专员</option>
				        <option value="2"  >经理</option>
				        <option value="3" selected>银行家</option>
			  			{else/}
			  			<option value="0" selected>普通会员</option >
				        <option value="1" >专员</option>
				        <option value="2" >经理</option>
				        <option value="3" >银行家</option>
			  			{/if}
				      
				      </select>
				    </div>
				  </div> 
				   <div class="layui-form-item">
				    <label class="layui-form-label">转正:</label>
				    <div class="layui-input-block">
				      <select name="info[zz]" lay-verify="required">
			  			{if  condition="($user.info.zz == 1)"}
  						 <option value="0" >实习</option >
				        <option value="1" selected>转正</option>
				     
				        {else/}
			  			<option value="0" selected>实习</option >
				        <option value="1" >转正</option>  
			  			{/if}  
				      </select>
				    </div>
				  </div> 
				     <div class="layui-form-item">
				    <label class="layui-form-label">业务员:</label>
				    <div class="layui-input-block">
				      <select name="info[yewuy]" lay-verify="required">
			  			{if  condition="($user.info.yewuy == 1)"}
  						 <option value="0" >否</option >
				        <option value="1" selected>是</option>
				     
				        {else/}
			  			<option value="0" selected>否</option >
				        <option value="1" >是</option>  
			  			{/if}  
				      </select>
				    </div>
				  </div> 
				  <div class="layui-form-item">
					<label class="layui-form-label">上级:</label>
					<div class="layui-input-block">
						<input name="upuid[suid]"  lay-verify="title" autocomplete="off" value="{$user.upuid.suid}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				  <div class="layui-form-item">
					<label class="layui-form-label">上上级:</label>
					<div class="layui-input-block">
						<input name="upuid[ssuid]"  lay-verify="title" autocomplete="off" value="{$user.upuid.ssuid}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				  <div class="layui-form-item">
					<label class="layui-form-label">上上上级:</label>
					<div class="layui-input-block">
						<input name="upuid[sssuid]"  lay-verify="title" autocomplete="off" value="{$user.upuid.sssuid}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				 <div class="layui-form-item">
					<label class="layui-form-label">注册时间:</label>
					<div class="layui-input-block">
						<input name="" disabled  lay-verify="title" autocomplete="off" value="{$user.createtime}" placeholder="" class="layui-input" type="text">
					</div>
				</div>
				 <div class="layui-form-item">
				    <label class="layui-form-label">黑名单:</label>
				    <div class="layui-input-block">
				      <select name="info[laolai]" lay-verify="required">
			  			{if  condition="($user.info.laolai == 1)"}
  						 <option value="0" >否</option >
				        <option value="1" selected>是</option>
				     
				        {else/}
			  			<option value="0" selected>否</option >
				        <option value="1" >是</option>  
			  			{/if}  
				      </select>
				    </div>
				  </div> 
				<input type="hidden" name="id" value="{$user.uid}">
				<div class="layui-input-block">
					<input type="submit" class="layui-btn" value="提交">
				</div>

		</form>
		<script type="text/javascript" src="__STATIC__/plugins/layui/layui.js"></script>
			<script type="text/javascript" src="__STATIC__/datas/nav.js"></script>	
			<script src="__JS__/index.js"></script>
		    <script src="__JS__/jquery.js"></script>
	</body>
</html>
<script >
	layui.config({
			base: '__STATIC__/plugins/layui/modules/'
		});

		layui.use(['form', 'layedit', 'laydate','icheck', 'laypage','layer'], function() {
		var 	layer = layui.layer,
			layedit = layui.layedit,
			laydate = layui.laydate;
			from = layui.from;


		var editIndex = layedit.build('LAY_demo_editor');

		 $('.test1').on('click', function() {
		 	var type = $(this).attr("res");
			  layer.open({
			      type: 2,
				      title: '图片',
				      maxmin: true,
				      offset: 't',
				      anim: 2,
				      shadeClose: true, //点击遮罩关闭层
			      area : ['600px' , '520px'],
			      content: '__ADMIN__/bank/img?type='+type
			   });
		 });

		})

</script>
  <script type="text/javascript">
        UE.getEditor('content',{initialFrameWidth:800,initialFrameHeight:200})
        UE.getEditor('jieshao',{initialFrameWidth:800,initialFrameHeight:200})
</script>